package org.example.arraylist01;

import java.util.ArrayList;

/**
 * ArrayList扩容思想
 *
 */
public class ArrayListDemo05 {
    public static void main(String[] args) {
        ArrayList<String> al = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            al.add("张三");
        }
        al.add("李四");
        System.out.println(al);
    }
}
